package yag.battle.factory;


import org.springframework.stereotype.Component;
import yag.battle.model.SwordMan;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by user on 25.08.2014.
 */
@Component
public class SwordmanFactory {

    public List<SwordMan> createSwordmans(int count) {

        List<SwordMan> list = new ArrayList<SwordMan>(count);
        for (int i = 0; i < count; i++) {
            list.add(new SwordMan());
        }
        return list;
    }


}
